package org.fujene.structure;

public abstract class Range<T extends Comparable<T>>{
	private T from;
	private T to;

	public Range(T from, T to){
		this.from = from;
		this.to = to;
	}

	public boolean isInRange(T val) {
		return (from.compareTo(val) < 0 && val.compareTo(to) < 0);
	}
}